package com.caohx.bms.pojo.dto;

import com.caohx.bms.pojo.BookCategory;

public class BookQueryDto {
    private Long id;
    private String title;
    private String author;
    private BookCategory category; // 更新为 BookCategory 类型
    private String description;
    private Integer stockQuantity;

    // 构造函数
    public BookQueryDto(Long id, String title, String author, BookCategory category, String description, Integer stockQuantity) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.category = category;
        this.description = description;
        this.stockQuantity = stockQuantity;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public BookCategory getCategory() {
        return category;
    }

    public void setCategory(BookCategory category) {
        this.category = category;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Integer stockQuantity) {
        this.stockQuantity = stockQuantity;
    }
}
